﻿@model SpaceNeedle.City6473.WebSite.Models.AppsModel
@using SpaceNeedle.City6473.Web.Data.Models

@{
    var staticContent = ViewBag.StaticContent as WebSiteContent;
    ViewBag.Title = staticContent.Apps.PageTitle;
}

@Html.ActionLink(staticContent.Apps.New, "Create", "Apps")

<table class="table">
    <thead>
        <tr>
            <th>
                @staticContent.Apps.Id
            </th>
            <th>
                @staticContent.Apps.Name
            </th>
            <th>
                @staticContent.Apps.Icon
            </th>
            <th>
                @staticContent.Apps.Uri
            </th>
            <th>
                @staticContent.Apps.IsEnabled
            </th>
            <th>
                @staticContent.Apps.PermissionLevel
            </th>
            <th>
                @staticContent.Apps.Description
            </th>
        </tr>
    </thead>
    <tbody>
        @foreach (var item in Model.Apps)
        {
            <tr>
                <td>
                    @item.Id
                </td>
                <td>
                    @item.Name
                </td>
                <td>
                    @item.Icon
                </td>
                <td>
                    @item.Uri
                </td>
                <td>
                    @item.IsEnabled
                </td>
                <td>
                    @item.PermissionLevel
                </td>
                <td>
                    @item.Description
                </td>
            </tr>
        }
    </tbody>
</table>


